package com.toe.pojo.vo.commodity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "CommodityGoodsDTO对象", description = "")
public class ProductDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商品标题")
    private String title;

    @ApiModelProperty(value = "商品简介")
    private String introduce;

    @ApiModelProperty(value = "商品类型id")
    private Long typeId;

    @ApiModelProperty(value = "商品类型名称")
    private String typeName;

    @ApiModelProperty(value = "商品封面图片")
    private String cover;

    @ApiModelProperty(value = "商品的销量")
    private Integer sales;

    @ApiModelProperty(value = "商品库存数量")
    private Integer stock;

    @ApiModelProperty(value = "商家id")
    private Long businessId;

    @ApiModelProperty(value = "商品拥有规格")
    private String specifications;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;
}
